package com.cdtu;

import com.cdtu.entity.SysEmployee;
import com.cdtu.mapper.SysEmployeeMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author : Sakura
 * @Date : 2023/8/8 16:09
 * @Description : TODO
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext_mapper.xml")
public class MvcTest01 {

    @Autowired
    private SysEmployeeMapper sysEmployeeMapper;

    @Test
    public void test01() {
        SysEmployee sysEmployee = sysEmployeeMapper.selectById(1l);
        System.out.println(sysEmployee);
    }
}
